//
// Created by guasen on 2022/5/8.
//

#ifndef MAILLAB_UTIL_H
#define MAILLAB_UTIL_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "base64_utils.h"
#define swap16(x) ((((x)&0xFF) << 8) | (((x) >> 8) & 0xFF)) //为16位数据交换大小端
char * getTextFromFile(const char *fileName);
char * getFileAsChar(const char *fileName);
char * getFileAsBase64(const char *fileName);
#endif //MAILLAB_UTIL_H
